package ua.pp.bizon.cripto.authorization;

import java.awt.HeadlessException;

import ua.pp.bizon.cripto.configuration.MainAppConsole;
import ua.pp.bizon.cripto.gui.UIDialog;

public class UIFactory {
    
    public UI getUI(){
        try {
            new java.awt.Frame();
            return new UIDialog(null, false);
            
        } catch (HeadlessException e) {
            return new MainAppConsole();
            
        } 
    }

}
